/*
 * wc.c - word, line and char count
 */

#include <stdio.h>

int
main()
{
  char ch;
  int nl = 0;
  int nw = 0;
  int nc = 0;
  int inword = 0;

  while ((ch = getchar()) != EOF) {
    nc++;
    if (ch == '\n')
      nl++;
    if (ch == ' ' || ch == '\t' || ch == '\n')
      inword = 0;
    else if (inword == 0) {
      inword = 1;
      nw++;
    }
  }
  printf("\t%d\t%d\t%d\n", nl, nw, nc);

  return 0;
}
